#include "AddPointState.h"
#include "Context.h"
#include "../model/Model.h"

AddPointState::AddPointState(Context *context):
        AbstractState(context, "Add point", "/buttons/img/map_add.png")
{
}
//--------------------------------------------------------------------------------
void AddPointState::activate()
{
    AbstractState::activate();
}
//--------------------------------------------------------------------------------
void AddPointState::deactivate()
{
    AbstractState::deactivate();
}

//--------------------------------------------------------------------------------
void AddPointState::mapClicked(float x, float y)
{
    _context->getModel()->addPoint(x, y);
}
//--------------------------------------------------------------------------------
